package com.toommi.refuse.enums;

/**
 * ..
 * APPUSER 异常信息枚举
 * @author yangg
 * @since 2019-07-24 09:52
 */
public enum  AppUserExceptionEnum {
    /**
     * 用户名重复
     */
    INVALID_USERNAME_REPEAT(1001,"该用户名已被使用"),

    INVlLID_USERNAME_FORMAT(1002,"用户名不能为空，且长度不能大于10"),

    INVALID_PASSWORD_FORMAT(1003,"密码不能为空,且长度不能小于6"),

    INVALID_PHONE_NULL(1004,"手机号不能为空"),

    INVALID_PHONE_REPEAT(1005,"该手机号已被使用"),

    INVALID_USER_NULL(1006,"用户不存在"),

    INVALID_USERNAME_NULL(1007,"用户名不能为空"),

    INVALID_PASSWORD_NULL(1008,"密码不能为空"),

    INVALID_NAME_PASSWORD(1009,"用户名或密码错误"),

    INVALID_USER_LOCKED(1010,"该账号已被冻结"),











    END(9999,"END");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    AppUserExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }}
